package xiaohao.order.web.home.module.screen;

import javax.servlet.http.HttpSession;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;

import com.alibaba.citrus.turbine.Navigator;

public class Logout {
	
	private Logger logger = Logger.getLogger(getClass());
	
	@Autowired
	private HttpSession session;
	
	public void execute(Navigator navigator) {
		
		session.removeAttribute("nick");
		session.removeAttribute("sessionKey");
		
		navigator.redirectToLocation("/home.htm");
	}
}
